package com.ibeifeng.crm.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.ibeifeng.crm.bean.Teacher;
import com.ibeifeng.crm.dao.TeacherDao;
import com.ibeifeng.crm.service.TeacherService;

@Service
public class TeacherServiceImpl implements TeacherService {
	@Resource
	TeacherDao teacherDao;

	@Override
	public int add(Teacher teacher) {
		return teacherDao.add(teacher);
	}

	@Override
	public int update(Teacher teacher) {
		return teacherDao.update(teacher);
	}

	@Override
	public int delete(int [] idsdel) {
		return teacherDao.delete(idsdel);
	}

	@Override
	public Teacher queryTeacher(Teacher teacher) {
		return teacherDao.queryTeacher(teacher);
	}

	@Override
	public int count() {
		return teacherDao.count();
	}

	@Override
	public List<Teacher> findAllSplit(int page, int pageSize, String column,
			String keyWord) {
		return teacherDao.findAllSplit(page,pageSize,column,keyWord);
	}

	@Override
	public List<Teacher> queryMethod() {
		return teacherDao.queryMethod();
	}




}
